﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="look.aspx.cs" Inherits="admin_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="addscenery" style="width: 1000px; margin: 0 auto;">
        <asp:GridView ID="gv_scenery" runat="server" AutoGenerateColumns="False" Width="1000px"
            BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px"
            CellPadding="4" EnableModelValidation="True" ForeColor="Black" GridLines="Vertical"
            OnRowDataBound="gv_scenery_RowDataBound" AllowPaging="True" OnPageIndexChanging="gv_scenery_PageIndexChanging"
            PageSize="15">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField HeaderText="编号" ItemStyle-Width="60" ItemStyle-HorizontalAlign="Center" />
                <asp:TemplateField HeaderText="缩略图" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:Image ID="icon" Width="80px" Height="50px" ImageUrl='<%#Eval("pic_address") %>'
                            runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="标题" DataField="pic_Title" ItemStyle-Width="220" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="发表时间" DataField="pic_time" ItemStyle-HorizontalAlign="Center" />
                <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:LinkButton ID="delete" OnClientClick="return confirm('你确定要删除吗？')" CommandArgument='<%#Eval("pic_ID") %>'
                            OnClick="lb_delete_Click" runat="server">删除</asp:LinkButton>
                        <a href='xiugai.aspx?pic_ID=<%#Eval("pic_ID") %>' target="mainframe">修改</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <PagerStyle HorizontalAlign="Center" BackColor="AppWorkspace" />
        </asp:GridView>
    </form>
    </div>
</body>
</html>
